package com.dianping.cat.consumer.event.model.entity;

import com.dianping.cat.consumer.event.model.BaseEntity;
import com.dianping.cat.consumer.event.model.IVisitor;





public class StatusCode
  extends BaseEntity<StatusCode>
{
  private String m_id;
  private long m_count;

  public StatusCode() {}

/* 18 */   public StatusCode(String id) { this.m_id = id; }




/* 23 */   public void accept(IVisitor visitor) { visitor.visitStatusCode(this); }



  public boolean equals(Object obj) {
/* 28 */     if (obj instanceof StatusCode) {
/* 29 */       StatusCode _o = (StatusCode)obj;

/* 31 */       if (!equals(getId(), _o.getId())) {
/* 32 */         return false;
      }

/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public long getCount() { return this.m_count; }



/* 46 */   public String getId() { return this.m_id; }





  public StatusCode incCount() {
/* 59 */     this.m_count++;
/* 60 */     return this;
  }

  public StatusCode incCount(long count) {
/* 64 */     this.m_count += count;
/* 65 */     return this;
  }


  public void mergeAttributes(StatusCode other) {
/* 70 */     assertAttributeEquals(other, "statusCode", "id", this.m_id, other.getId());

/* 72 */     this.m_count = other.getCount();
  }

  public StatusCode setCount(long count) {
/* 76 */     this.m_count = count;
/* 77 */     return this;
  }

  public StatusCode setId(String id) {
/* 81 */     this.m_id = id;
/* 82 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/event/model/entity/StatusCode.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */